// JavaScript Document$(function(){
$(document).ready(function() {
//$("a").focus(function(){$(this).blur();});					   
//$("a").focus(function(){$(this).blur();});		
$("a.prev,a.next,a.np1,a.np2,a.top").click(function(){return false});

$("a.top").click(function () { $("html,body").animate({ scrollTop: $(".head").offset().top }, 1000); })

$(".imgDemo .imgCon").scrollable({size:1,items:".imgDemo .imgCon ul",loop:true,prev:".prev",next:".next"}).autoscroll({ autoplay: true,interval:4000 });

$(".src1 .src2").scrollable({size:3,items:".src1 .src2 ul",loop:true,prev:".np1",next:".np2",vertical:true}).autoscroll({ autoplay: true,interval:4000 });

$("#chained").scrollable({size:5,items:"#chained ul",loop:true}).autoscroll({ autoplay: true,interval:4000 }).navigator({navi:".nv",naviItem:"dd",activeClass:"current"});

if($(".banner ul li").size()>0){
$(".banner ul").tabs(".banner > div", {effect: 'fade',loop:true,fadeOutSpeed:1000,fadeInSpeed:1500,rotate: true,event:"mouseover"}).slideshow({autoplay:true,interval: 6000});				
}

if($(".caseDemo ul li").size()>0){
$(".caseDemo ul").tabs(".caseDemo > div", {effect: 'fade',loop:true,fadeOutSpeed:1000,fadeInSpeed:1500,rotate: true}).slideshow({autoplay:true,interval: 4000});				
}

if($(".quoteDemo ul li").size()>0){
$(".quoteDemo ul").tabs(".quoteDemo > div", {effect: 'fade',loop:true,fadeOutSpeed:1000,fadeInSpeed:1500,rotate: true,event:"mouseover"}).slideshow({autoplay:true,interval: 4000});				
}

if($(".timiTeam dl dd").size()>0){
$(".timiTeam dl").tabs(".timiTeam > div", {effect: 'fade',loop:true,fadeOutSpeed:1000,fadeInSpeed:1500,rotate: true,event:"mouseover"}).slideshow({autoplay:true,interval: 4000});				
}

if($(".src2 ul li").size()>0){
$(".src2 ul").tabs(".attrCon > div", {effect: 'fade',loop:true,fadeOutSpeed:1000,fadeInSpeed:1500,rotate: true,event:"mouseover"}).slideshow({autoplay:true,interval: 4000});				
}


if($(".day ul li").size()>0){
$(".day ul").tabs(".news > .news1", {loop:true,rotate: true,event:"mouseover"}).slideshow({autoplay:false,interval: 4000});				
}

//$(function(){
//     SexyLightbox.initialize({color:'white', dir: 'theme/sexyimages'});
//})

		$(".nav li a").not(".hover").hover(function(){
									  
			$(this).find("b").css("display","none");
			
			$(this).find("span").css("display","block");
									  
									  },function(){
										  
			$(this).find("b").css("display","block");
			
			$(this).find("span").css("display","none");
										  
										  })

});
